home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 October: Mac OS SDK / Dev.CD Oct 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / PInterfaces / ROMDefs.p < prev    next >
Encoding:
Text File  |  1997-08-12  |  11.0 KB  |  269 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ROMDefs.p
  3.  
  4.      Contains:    NuBus card ROM Definitions.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Release:    Universal Interfaces 3.0.1
  8.  
  9.      Copyright:    © 1986-1997 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. }
  18. {$IFC UNDEFINED UsingIncludes}
  19. {$SETC UsingIncludes := 0}
  20. {$ENDC}
  21.  
  22. {$IFC NOT UsingIncludes}
  23.  UNIT ROMDefs;
  24.  INTERFACE
  25. {$ENDC}
  26.  
  27. {$IFC UNDEFINED __ROMDEFS__}
  28. {$SETC __ROMDEFS__ := 1}
  29.  
  30. {$I+}
  31. {$SETC ROMDefsIncludes := UsingIncludes}
  32. {$SETC UsingIncludes := 1}
  33.  
  34.  
  35. {$PUSH}
  36. {$ALIGN MAC68K}
  37. {$LibExport+}
  38.  
  39.  
  40. CONST
  41.     appleFormat                    = 1;                            { Format of Declaration Data (IEEE will assign real value) }
  42.     romRevision                    = 1;                            { Revision of Declaration Data Format }
  43.     romRevRange                    = 9;                            { Revision of Declaration Data Format [1..9] }
  44.     testPattern                    = 1519594439;                    { FHeader long word test pattern }
  45.     sCodeRev                    = 2;                            { Revision of code (For sExec) }
  46.     sExec2                        = 2;
  47.     sCPU68000                    = 1;                            { CPU type = 68000 }
  48.     sCPU68020                    = 2;                            { CPU type = 68020 }
  49.     sCPU68030                    = 3;                            { CPU type = 68030 }
  50.     sCPU68040                    = 4;                            { CPU type = 68040 }
  51.     sMacOS68000                    = 1;                            { Mac OS, CPU type = 68000 }
  52.     sMacOS68020                    = 2;                            { Mac OS, CPU type = 68020 }
  53.     sMacOS68030                    = 3;                            { Mac OS, CPU type = 68030 }
  54.     sMacOS68040                    = 4;                            { Mac OS, CPU type = 68040 }
  55.     board                        = 0;                            { Board sResource - Required on all boards }
  56.     displayVideoAppleTFB        = 16843009;                        { Video with Apple parameters for TFB card. }
  57.     displayVideoAppleGM            = 16843010;                        { Video with Apple parameters for GM card. }
  58.     networkEtherNetApple3Com    = 33620225;                        { Ethernet with apple parameters for 3-Comm card. }
  59.     testSimpleAppleAny            = -2147417856;                    { A simple test sResource. }
  60.     endOfList                    = 255;                            { End of list }
  61.     defaultTO                    = 100;                            { 100 retries. }
  62.  
  63.  
  64.                                                                 {  sResource flags for sRsrc_Flags  }
  65.     fOpenAtStart                = 1;                            {  set => open the driver at start time, else do not  }
  66.     f32BitMode                    = 2;                            {  set => a 32-bit address will be put into dctlDevBase (IM Devices 2-54)  }
  67.  
  68.     sRsrcType                    = 1;                            { Type of sResource }
  69.     sRsrcName                    = 2;                            { Name of sResource }
  70.     sRsrcIcon                    = 3;                            { Icon }
  71.     sRsrcDrvrDir                = 4;                            { Driver directory }
  72.     sRsrcLoadDir                = 5;                            { Load directory }
  73.     sRsrcBootRec                = 6;                            { sBoot record }
  74.     sRsrcFlags                    = 7;                            { sResource Flags }
  75.     sRsrcHWDevId                = 8;                            { Hardware Device Id }
  76.     minorBaseOS                    = 10;                            { Offset to base of sResource in minor space. }
  77.     minorLength                    = 11;                            { Length of sResource’s address space in standard slot space. }
  78.     majorBaseOS                    = 12;                            { Offset to base of sResource in Major space. }
  79.     majorLength                    = 13;                            { Length of sResource in super slot space. }
  80.     sRsrcTest                    = 14;                            { sBlock diagnostic code }
  81.     sRsrccicn                    = 15;                            { Color icon }
  82.     sRsrcicl8                    = 16;                            { 8-bit (indexed) icon }
  83.     sRsrcicl4                    = 17;                            { 4-bit (indexed) icon }
  84.     sDRVRDir                    = 16;                            { sDriver directory }
  85.     sGammaDir                    = 64;                            { sGamma directory }
  86.     sRsrcVidNames                = 65;                            { Video mode name directory }
  87.     sRsrcDock                    = 80;                            { spID for Docking Handlers }
  88.     sDiagRec                    = 85;                            { spID for board diagnostics }
  89.     sVidAuxParams                = 123;                            { more video info for Display Manager -- timing information }
  90.     sDebugger                    = 124;                            { DatLstEntry for debuggers indicating video anamolies }
  91.     sVidAttributes                = 125;                            { video attributes data field (optional,word) }
  92.     fLCDScreen                    = 0;                            {  bit 0 - when set is LCD, else is CRT }
  93.     fBuiltInDisplay                = 1;                            {       1 - when set is built-in (in the box) display, else not }
  94.     fDefaultColor                = 2;                            {       2 - when set display prefers multi-bit color, else gray }
  95.     fActiveBlack                = 3;                            {       3 - when set black on display must be written, else display is naturally black }
  96.     fDimMinAt1                    = 4;                            {       4 - when set should dim backlight to level 1 instead of 0 }
  97.     fBuiltInDetach                = 4;                            {       4 - when set is built-in (in the box), but detaches }
  98.     sVidParmDir                    = 126;
  99.     sBkltParmDir                = 140;                            { directory of backlight tables }
  100.     stdBkltTblSize                = 36;                            { size of “standard” 0..31-entry backlight table }
  101.     sSuperDir                    = 254;
  102.  
  103. { =======================================================================    }
  104. { sResource types                                                            }
  105. { =======================================================================    }
  106.     catBoard                    = $0001;                        { Category for board types. }
  107.     catTest                        = $0002;                        { Category for test types -- not used much. }
  108.     catDisplay                    = $0003;                        { Category for display (video) cards. }
  109.     catNetwork                    = $0004;                        { Category for Networking cards. }
  110.     catScanner                    = $0008;                        { scanners bring in data somehow }
  111.     catCPU                        = $000A;
  112.     catIntBus                    = $000C;
  113.     catProto                    = $0011;
  114.     catDock                        = $0020;                        { <Type> }
  115.     typeBoard                    = $0000;
  116.     typeApple                    = $0001;
  117.     typeVideo                    = $0001;
  118.     typeEtherNet                = $0001;
  119.     typeStation                    = $0001;
  120.     typeDesk                    = $0002;
  121.     typeTravel                    = $0003;
  122.     typeDSP                        = $0004;
  123.     typeXPT                        = $000B;
  124.     typeSIM                        = $000C;
  125.     typeDebugger                = $0100;
  126.     type68000                    = $0002;
  127.     type68020                    = $0003;
  128.     type68030                    = $0004;
  129.     type68040                    = $0005;
  130.     type601                        = $0025;
  131.     type603                        = $002E;
  132.     typeAppleII                    = $0015;                        { Driver Interface : <id.SW> }
  133.     drSwMacCPU                    = 0;
  134.     drSwAppleIIe                = $0001;
  135.     drSwApple                    = 1;                            { To ask for or define an Apple-compatible SW device. }
  136.     drSwMacsBug                    = $0104;
  137.     drSwDepewEngineering        = $0101;                        { Driver Interface : <id.SW><id.HW> }
  138.     drHwTFB                        = 1;                            { HW ID for the TFB (original Mac II) video card. }
  139.     drHw3Com                    = 1;                            { HW ID for the Apple EtherTalk card. }
  140.     drHwBSC                        = 3;
  141.     drHwGemini                    = 1;
  142.     drHwDeskBar                    = 1;
  143.     drHwHooperDock                = 2;                            { Hooper’s CatDock,TypeDesk,DrSwApple ID; registered with DTS. }
  144.     drHwATT3210                    = $0001;
  145.     drHwBootBug                    = $0100;
  146.     drHwMicroDock                = $0100;                        {  video hardware id's  - <catDisplay><typVideo> }
  147.     drHwSTB3                    = $0002;                        {  Assigned by Kevin Mellander for STB-3 hardware.  }
  148.     drHwSTB                        = $0002;                        {  (Both STB-3 and STB-4 share the same video hardware.)  }
  149.     drHwRBV                        = $0018;                        {  IIci Aurora25/16 hw ID  }
  150.     drHwJMFB                    = $0019;                        {  4•8/8•24 NuBus card  }
  151.     drHwElsie                    = $001A;
  152.     drHwTim                        = $001B;
  153.     drHwDAFB                    = $001C;
  154.     drHwDolphin                    = $001D;                        {  8•24GC NuBus card  }
  155.     drHwGSC                        = $001E;                        {  (Renamed from GSC drHWDBLite)  }
  156.     drHwDAFBPDS                    = $001F;
  157.     drHWVSC                        = $0020;
  158.     drHwApollo                    = $0021;
  159.     drHwSonora                    = $0022;
  160.     drHwReserved2                = $0023;
  161.     drHwColumbia                = $0024;
  162.     drHwCivic                    = $0025;
  163.     drHwBrazil                    = $0026;
  164.     drHWPBLCD                    = $0027;
  165.     drHWCSC                        = $0028;
  166.     drHwJET                        = $0029;
  167.     drHWMEMCjr                    = $002A;
  168.     drHwBoogie                    = $002B;                        {  8•24AC nuBus video card (built by Radius)  }
  169.     drHwHPV                        = $002C;                        {  High performance Video (HPV) PDS card for original PowerMacs  }
  170.     drHwPlanaria                = $002D;                        { PowerMac 6100/7100/8100 PDS AV video }
  171.     drHwValkyrie                = $002E;
  172.     drHwKeystone                = $002F;
  173.     drHWATI                        = $0055;                        {  other drHW id's for built-in functions }
  174.     drHwSonic                    = $0110;
  175.     drHwMace                    = $0114;
  176.     drHwDblExp                    = $0001;                        {  CPU board IDs - <catBoard> <typBoard> <0000> <0000> }
  177.     MIIBoardId                    = $0010;                        { Mac II Board ID }
  178.     ciVidBoardID                = $001F;                        { Aurora25 board ID }
  179.     CX16VidBoardID                = $0020;                        { Aurora16 board ID }
  180.     MIIxBoardId                    = $0021;                        { Mac IIx Board ID }
  181.     SE30BoardID                    = $0022;                        { Mac SE/30 Board ID }
  182.     MIIcxBoardId                = $0023;                        { Mac IIcx Board ID }
  183.     MIIfxBoardId                = $0024;                        { F19 board ID }
  184.     EricksonBoardID                = $0028;
  185.     ElsieBoardID                = $0029;
  186.     TIMBoardID                    = $002A;
  187.     EclipseBoardID                = $002B;
  188.     SpikeBoardID                = $0033;
  189.     DBLiteBoardID                = $0035;
  190.     ZydecoBrdID                    = $0036;
  191.     ApolloBoardID                = $0038;
  192.     PDMBrdID                    = $0039;
  193.     VailBoardID                    = $003A;
  194.     WombatBrdID                    = $003B;
  195.     ColumbiaBrdID                = $003C;
  196.     CycloneBrdID                = $003D;
  197.     CompanionBrdID                = $003E;
  198.     DartanianBoardID            = $0040;
  199.     DartExtVidBoardID            = $0046;
  200.     HookBoardID                    = $0047;                        { Hook internal video board ID }
  201.     EscherBoardID                = $004A;                        { Board ID for Escher (CSC) }
  202.     POBoardID                    = $004D;                        { Board ID for Primus/Optimus/Aladdin }
  203.     TempestBrdID                = $0050;                        { Non-official Board ID for Tempest }
  204.     BlackBirdBdID                = $0058;                        { Board ID for BlackBird }
  205.     BBExtVidBdID                = $0059;                        { Board ID for BlackBird built-in external video }
  206.     YeagerBoardID                = $005A;                        { Board ID for Yeager }
  207.     BBEtherNetBdID                = $005E;                        { Board ID for BlackBird Ethernet board }
  208.     TELLBoardID                    = $0065;                        { Board ID for TELL (Valkyrie) }
  209.     MalcolmBoardID                = $065E;                        { Board ID for Malcolm }
  210.     AJBoardID                    = $065F;                        { Board ID for AJ }
  211.     M2BoardID                    = $0660;                        { Board ID for M2 }
  212.     OmegaBoardID                = $0661;                        { Board ID for Omega }
  213.     TNTBoardID                    = $0670;                        { Board ID for TNT/Alchemy/Hipclipper CPUs (did Nano just make this up?) }
  214.     HooperBoardID                = $06CD;                        { Board ID for Hooper }
  215.                                                                 {  other board IDs }
  216.     BoardIDDblExp                = $002F;
  217.     DAFBPDSBoardID                = $0037;
  218.     MonetBoardID                = $0048;
  219.     SacSONIC16BoardID            = $004E;
  220.     SacSONIC32BoardID            = $004F;                        {  CPU board types - <CatCPU> <Typ680x0> <DrSwMacCPU> }
  221.     drHWMacII                    = $0001;                        { Mac II hw ID }
  222.     drHwMacIIx                    = $0002;                        { Mac IIx hw ID }
  223.     drHWSE30                    = $0003;                        { Mac SE/30 hw ID }
  224.     drHwMacIIcx                    = $0004;                        { Mac IIcx hw ID }
  225.     drHWMacIIfx                    = $0005;                        { Mac IIfx hw ID }
  226.     drHWF19                        = $0005;                        { F19 hw ID }
  227.     sBlockTransferInfo            = 20;                            { general slot block xfer info }
  228.     sMaxLockedTransferCount        = 21;                            { slot max. locked xfer count }
  229.     boardId                        = 32;                            { Board Id }
  230.     pRAMInitData                = 33;                            { sPRAM init data }
  231.     primaryInit                    = 34;                            { Primary init record }
  232.     timeOutConst                = 35;                            { Time out constant }
  233.     vendorInfo                    = 36;                            { Vendor information List. See Vendor List, below }
  234.     boardFlags                    = 37;                            { Board Flags }
  235.     secondaryInit                = 38;                            { Secondary init record/code }
  236.                                                                 {  The following Id's are associated with all CPU sResources. }
  237.     MajRAMSp                    = 129;                            { ID of Major RAM space. }
  238.     MinROMSp                    = 130;                            { ID of Minor ROM space. }
  239.     vendorId                    = 1;                            { Vendor Id }
  240.     serialNum                    = 2;                            { Serial number }
  241.     revLevel                    = 3;                            { Revision level }
  242.     partNum                        = 4;                            { Part number }
  243.     date                        = 5;                            { Last revision date of the card }
  244.  
  245.     testByte                    = 32;                            { Test byte. }
  246.     testWord                    = 33;                            { 0021 }
  247.     testLong                    = 34;                            { Test Long. }
  248.     testString                    = 35;                            { Test String. }
  249.  
  250. { sResource List. Category: Display        Type: Video }
  251. { The following Id's are common to all Mode sResources in Display_Video }
  252. { functional sResources. }
  253.     mBlockTransferInfo            = 5;                            {  slot block xfer info PER MODE  }
  254.     mMaxLockedTransferCount        = 6;                            {  slot max. locked xfer count PER MODE  }
  255.  
  256.  
  257.  
  258.  
  259. {$ALIGN RESET}
  260. {$POP}
  261.  
  262. {$SETC UsingIncludes := ROMDefsIncludes}
  263.  
  264. {$ENDC} {__ROMDEFS__}
  265.  
  266. {$IFC NOT UsingIncludes}
  267.  END.
  268. {$ENDC}
  269.